package com.hspedu.final_;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/1/27
 * @time 17:29
 */
public class FinalExercise01 {
    public static void main(String[] args) {
        Circle circle = new Circle(3);
        System.out.println(circle.getArea());
    }
}

class Circle{
    private double radius;


        {PI = 3.14;}

    private final double PI ;

    public Circle(double radius) {
        this.radius = radius;
    }

    public double getArea(){
        return this.radius * PI;
    }
}
